package com.clwl.supervise.superviseapp.entity.pro;


import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.util.Date;

@Getter
@Setter
@TableName("jg_pro_food_additive_type_detail_main")
public class JgProFoodAdditiveTypeDetailMain implements Serializable{

    private static final long serialVersionUID = 1L;

    /** 主键id */
    @TableId(value = "id")
    private Long id;

    /** 添加剂类别ID */
    private Long foodAdditiveTypeId;

    /** 食品添加剂类别名称 */
    @TableField(exist = false)
    private String additiveTypeName;

    /** 类别编号 */
    @TableField(exist = false)
    private String typeCode;

    /** 类别名称 */
    @TableField(exist = false)
    private String typeName;

    /** 品种明细 */
    private String foodDetail;

    /** 风险等级 */
    private String riskLevel;

    /** 风险分值 */
    private double riskScore;

    /** 创建者 */
    private String createBy;

    /** 创建时间 */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss" , timezone = "GMT+8")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;

    @TableField(exist = false)
    private String isMaximum;

    @TableField(exist = false)
    private String levelDescriptors;

}
